package com.company.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.company.system.mapper.TablePositionaltitleslistMapper;
import com.company.system.domain.TablePositionaltitleslist;
import com.company.system.service.ITablePositionaltitleslistService;

/**
 * 职称列Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-06
 */
@Service
public class TablePositionaltitleslistServiceImpl implements ITablePositionaltitleslistService 
{
    @Autowired
    private TablePositionaltitleslistMapper tablePositionaltitleslistMapper;

    /**
     * 查询职称列
     * 
     * @param positionaltitlesid 职称列主键
     * @return 职称列
     */
    @Override
    public TablePositionaltitleslist selectTablePositionaltitleslistByPositionaltitlesid(Long positionaltitlesid)
    {
        return tablePositionaltitleslistMapper.selectTablePositionaltitleslistByPositionaltitlesid(positionaltitlesid);
    }

    /**
     * 查询职称列列表
     * 
     * @param tablePositionaltitleslist 职称列
     * @return 职称列
     */
    @Override
    public List<TablePositionaltitleslist> selectTablePositionaltitleslistList(TablePositionaltitleslist tablePositionaltitleslist)
    {
        return tablePositionaltitleslistMapper.selectTablePositionaltitleslistList(tablePositionaltitleslist);
    }

    /**
     * 新增职称列
     * 
     * @param tablePositionaltitleslist 职称列
     * @return 结果
     */
    @Override
    public int insertTablePositionaltitleslist(TablePositionaltitleslist tablePositionaltitleslist)
    {
        return tablePositionaltitleslistMapper.insertTablePositionaltitleslist(tablePositionaltitleslist);
    }

    /**
     * 修改职称列
     * 
     * @param tablePositionaltitleslist 职称列
     * @return 结果
     */
    @Override
    public int updateTablePositionaltitleslist(TablePositionaltitleslist tablePositionaltitleslist)
    {
        return tablePositionaltitleslistMapper.updateTablePositionaltitleslist(tablePositionaltitleslist);
    }

    /**
     * 批量删除职称列
     * 
     * @param positionaltitlesids 需要删除的职称列主键
     * @return 结果
     */
    @Override
    public int deleteTablePositionaltitleslistByPositionaltitlesids(Long[] positionaltitlesids)
    {
        return tablePositionaltitleslistMapper.deleteTablePositionaltitleslistByPositionaltitlesids(positionaltitlesids);
    }

    /**
     * 删除职称列信息
     * 
     * @param positionaltitlesid 职称列主键
     * @return 结果
     */
    @Override
    public int deleteTablePositionaltitleslistByPositionaltitlesid(Long positionaltitlesid)
    {
        return tablePositionaltitleslistMapper.deleteTablePositionaltitleslistByPositionaltitlesid(positionaltitlesid);
    }
}
